package cn.com.duiba.millionaire.center.biz.exception;

/**
 * Created by xiaoxuda on 2018/2/1.
 */
public class BusinessException extends RuntimeException{

    private ErrorCode errorCode;

    public BusinessException(String msg){
        super(msg);
    }

    public BusinessException(ErrorCode errorCode){
        this.errorCode = errorCode;
    }

    public ErrorCode getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(ErrorCode errorCode) {
        this.errorCode = errorCode;
    }
}
